package com.jlg.beans.groupon;

import com.julewa.db.DB;


/**
 *
 * author: huazhang
 * since : 2011-3-9
 */
public class LocationBean
{
    
    public static final int ADMINISTRATIVE_REGINON = 1;
    public static final int NEIGHBORHOOD = 2;
    public static final int SHOP = 3;
    public static final int GROUPONSHOP = 4;
    
    @DB.KEY long id;
    @DB.COLUMN long parentid;
    @DB.COLUMN int type;       // 1代表行政区划如省市等，2代表商家
    @DB.COLUMN String name;
    @DB.COLUMN String fullname;
    @DB.COLUMN String shortname;
    @DB.COLUMN String pinyinname;
    @DB.COLUMN float longitude;
    @DB.COLUMN float latitude;
    @DB.COLUMN String address;
    @DB.COLUMN int postcode;
    @DB.COLUMN String telephone;
    @DB.COLUMN String fax;
    @DB.COLUMN String email;
    @DB.COLUMN String officeurl;
    @DB.COLUMN String description;
    @DB.COLUMN long lastedit;
    @DB.COLUMN long since;
    @DB.COLUMN String source;
    @DB.COLUMN int rating;
    
    public long getId()
    {
        return id;
    }
    public void setId(long id)
    {
        this.id = id;
    }
    public long getParentid()
    {
        return parentid;
    }
    public void setParentid(long parentid)
    {
        this.parentid = parentid;
    }
    public int getType()
    {
        return type;
    }
    public void setType(int type)
    {
        this.type = type;
    }
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public String getFullname()
    {
        return fullname;
    }
    public void setFullname(String fullname)
    {
        this.fullname = fullname;
    }
    public String getShortname()
    {
        return shortname;
    }
    public void setShortname(String shortname)
    {
        this.shortname = shortname;
    }
    public String getPinyinname()
    {
        return pinyinname;
    }
    public void setPinyinname(String pinyinname)
    {
        this.pinyinname = pinyinname;
    }
    public float getLongitude()
    {
        return longitude;
    }
    public void setLongitude(float longitude)
    {
        this.longitude = longitude;
    }
    public float getLatitude()
    {
        return latitude;
    }
    public void setLatitude(float latitude)
    {
        this.latitude = latitude;
    }
    public String getAddress()
    {
        return address;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }
    public int getPostcode()
    {
        return postcode;
    }
    public void setPostcode(int postcode)
    {
        this.postcode = postcode;
    }
    public String getTelephone()
    {
        return telephone;
    }
    public void setTelephone(String telephone)
    {
        this.telephone = telephone;
    }
    public String getFax()
    {
        return fax;
    }
    public void setFax(String fax)
    {
        this.fax = fax;
    }
    public String getEmail()
    {
        return email;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }
    public String getOfficeurl()
    {
        return officeurl;
    }
    public void setOfficeurl(String officeurl)
    {
        this.officeurl = officeurl;
    }
    public String getDescription()
    {
        return description;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }
    public long getLastedit()
    {
        return lastedit;
    }
    public void setLastedit(long lastedit)
    {
        this.lastedit = lastedit;
    }
    public long getSince()
    {
        return since;
    }
    public void setSince(long since)
    {
        this.since = since;
    }
    public String getSource()
    {
        return source;
    }
    public void setSource(String source)
    {
        this.source = source;
    }
    public int getRating()
    {
        return rating;
    }
    public void setRating(int rating)
    {
        this.rating = rating;
    }
    public static int getAdministrativeReginon()
    {
        return ADMINISTRATIVE_REGINON;
    }
    public static int getNeighborhood()
    {
        return NEIGHBORHOOD;
    }
    public static int getShop()
    {
        return SHOP;
    }
    public static int getGrouponshop()
    {
        return GROUPONSHOP;
    }
    
    

}
